package com.zq.englishlearnserve.controller;

import cn.dev33.satoken.stp.StpUtil;
import com.zq.englishlearnserve.entity.User;

public class BaseController {

    public User getLoginUser(){
        User loginUser = (User) StpUtil.getSession().get("user");
        return loginUser;
    }
}
